@import "@/styles/antdComponentVars";

.page-container {
  padding: 20px 30px 50px;
  background-color: #ffffff;

  .page-content {
    width: 100%;
    display: flex;

    .content-left {
      width: 200px;

      textarea {
        box-shadow: none;
      }
    }

    .content-right {
      width: 400px;
    }

    .content-center {
      flex: 1;
      min-height: 30px;

      .content-header {
        padding-bottom: 10px;
        border-bottom: 1px solid #eeeeee;

        p {
          margin: 0;
          padding: 0;
          margin-top: 10px;
          font-size: 12px;
          color: #a7a7a7;

          span {
            margin-left: 30px;
          }
        }
      }

      .content-container {
        padding: 35px 10px 10px;
        // height: 400px;
        position: relative;

        .content-view {
          height: 300px;
          position: relative;
        }

        .my-note {
          font-size: 14px;
          width: 100%;
          height: 100%;
          overflow-y: auto;
          border: none;
          box-shadow: none;
          resize: none;
          font-weight: 600;
          line-height: 24px;
        }

        .note-pro {
          font-size: 14px;
          width: 100%;
          height: 100%;
          overflow-y: auto;
          color: #694747;
        }

        .copy-button {
          font-size: 12px;
          position: absolute;
          bottom: -35px;
          left: 0;
          padding: 5px 10px;
          background-color: #f2f2f2;
          cursor: pointer;
          border-radius: 3px;
        }

        .tabs {
          position: absolute;
          display: flex;
          top: 5px;
          left: 20px;
          height: 20px;

          .loading {
            display: flex;
            align-items: center;

            svg {
              font-size: 13px;
            }

            span {
              margin-left: 10px;
              color: #34c759;
            }
          }

          .tab {
            padding: 0 20px;
            position: relative;
            cursor: pointer;
            color: #a7a7a7;
          }

          .active {
            color: #000000;
          }

          .tab::after {
            content: "";
            height: 2px;
            display: block;
            position: absolute;
            bottom: -4px;
            left: 50%;
            width: 100%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.1);
          }

          .active::after {
            background-color: rgba(0, 0, 0, 1);
          }
        }
      }

      .content-footer {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 0 0;
        column-gap: 10px;

        & > div {
          position: relative;
          z-index: 99;
          cursor: pointer;
          flex-shrink: 0;
        }

        & > div:hover {
          box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        & > div:not(.record-detail, .generate):active {
          left: 1px;
          top: 1px;
        }

        .generate {
          height: 72px;
          padding: 0 27px;
          border-radius: 20px;
          background-color: #34c759;
          position: relative;

          .button-content {
            height: 100%;
            color: #f2f2f2;
            line-height: 72px;
          }

          .meeting-type {
            width: 120px;
            position: absolute;
            top: 78px;
            background-color: #eeeeee;
            padding: 5px 10px;
            border-radius: 8px;
            font-size: 12px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);

            .choose {
              width: 100%;
              height: 25px;
              line-height: 25px;
              display: flex;
              justify-content: space-between;
              align-items: center;
              display: flex;
              white-space: nowrap; /* 禁止文本换行 */
              overflow: hidden; /* 隐藏溢出内容 */
              text-overflow: ellipsis; /* 显示省略号 */

              .text {
                flex: 1;
                white-space: nowrap; /* 禁止文本换行 */
                overflow: hidden; /* 隐藏溢出内容 */
                text-overflow: ellipsis; /* 显示省略号 */
              }
            }

            .option-item {
              color: #a7a7a7;
              border-top: 1px solid #ffffff;
              height: 25px;
              line-height: 25px;
            }
          }
        }

        .upload-record-file {
          height: 70px;
          width: 70px;
          border-radius: 50%;
          background-color: #ff0303;
          display: flex;
          justify-content: center;
          align-items: center;

          svg {
            color: #f2f2f2;
            font-size: 40px;
          }
        }

        .start-record {
          height: 70px;
          width: 70px;
          border-radius: 50%;
          border: 1px solid #000000;
          display: flex;
          justify-content: center;
          align-items: center;
        }

        .start-record::before {
          content: "";
          display: block;
          height: 60px;
          width: 60px;
          border-radius: 50%;
          background-color: #ff0303;
        }

        .record-detail {
          border-radius: 20px;

          .record-detail-button {
            padding: 0 17px 0 25px;
            height: 72px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            column-gap: 17px;
            color: #111111;
            background-color: #f2f2f2;

            svg {
              font-size: 16px;
              color: #a7a7a7;
            }
          }
        }

        @keyframes breathe {
          0%,
          100% {
            transform: scale(1);
          }
          50% {
            transform: scale(1.3);
          }
        }

        .record-detail-recording {
          .record-detail-button {
            color: #ffffff;
            background-color: #34c759;

            svg {
              font-size: 16px;
              color: #ffffff;
            }

            .record_icon {
              font-size: 18px;
              color: #ffffff;
              margin-right: 10px;
              animation: breathe 2s ease-in-out infinite;
            }
          }
        }

        .pause,
        .play {
          height: 72px;
          width: 72px;
          display: flex;
          justify-content: center;
          align-items: center;
          background-color: #f2f2f2;
          border-radius: 20px;

          img {
            height: 40px;
            width: 40px;
          }
        }

        .stop {
          height: 72px;
          width: 72px;
          display: flex;
          justify-content: center;
          align-items: center;
          border-radius: 20px;
          background-color: #ff0303;
        }

        .stop div {
          content: "";
          display: flex;
          justify-content: center;
          align-items: center;
          height: 40px;
          width: 40px;
          border: 3px solid #f2f2f2;
          border-radius: 50%;
        }

        .stop div::before {
          content: "";
          display: block;
          height: 15px;
          width: 15px;
          border: 3px solid #f2f2f2;
          border-radius: 1px;
        }

        .disabled::before {
          content: "";
          display: block;
          position: absolute;
          top: 0;
          left: 0;
          bottom: 0;
          right: 0;
          width: 100%;
          height: 100%;
          border-radius: 20px;
          background-color: rgba(255, 255, 255, 0.5);
        }
      }
    }
  }
}

.translate-content-modal {
  position: absolute;
  z-index: 99999;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 450px;
  border: 1px solid #f2f2f2;
  background-color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  cursor: auto;

  & > h1 {
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 10px;

    span {
      float: right;
      cursor: pointer;
    }
  }

  & > div {
    flex-shrink: 0;
    flex: 1;
    overflow-y: auto;
    padding: 10px;

    color: #694747;
    font-size: 16px;
    line-height: 24px;
    background-color: #fcf8f8;
  }
}

.generate-loading {
  font-size: 18px;
  margin-right: 10px;
}

.translate-container {
  height: 100%;
  overflow-y: auto;
}


.create-time {
  color: #a7a7a7;
  font-size: 14px;
}

#meetingSDKElement {
position: fixed;
z-index: 9999;
top: 200px;
right: 100px;
}